﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wsitech.BLL;

public partial class Backend_Log : BackendPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bindLog();
        }
    }

    private void bindLog()
    {
        int count = 0;
        repMain.DataSource = LogInfoBLL.Instance.GetPagedList(null, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, ref count);
        repMain.DataBind();

        AspNetPager1.RecordCount = count;
    }


    //分页
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        bindLog();
    }
}